package com.wxx.main;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main_ {

	public static void main(String[] args) {
		String payUuid  =dateToStrYyyyMMddHHmmss(new Date());
		System.out.println("+>>>>payUuid>>>>>>>"+payUuid);
		System.out.println("====="+new Date(new java.util.Date().getTime()).toString());
		
		Calendar c1 = Calendar.getInstance(); // 查询起点时间
		//Calendar c2 = (Calendar) c1.clone();
		System.out.println("+>>>>c1>>>>>>>"+c1);
		System.out.println("+>>>>YEAR>>>>>>>"+Calendar.YEAR);
		System.out.println("+>>>>DAY_OF_MONTH>>>>>>>"+Calendar.MONTH);
		System.out.println("+>>>>DAY_OF_MONTH>>>>>>>"+Calendar.DAY_OF_MONTH);
		System.out.println("+>>>>DAY_OF_MONTH>>>>>>>"+Calendar.DAY_OF_MONTH);
		System.out.println("+>>>>LONG>>>>>>>"+Calendar.DAY_OF_WEEK);
		System.out.println("+>>>>LONG>>>>>>>"+Calendar.LONG);
	}
	public static String dateToStrYyyyMMddHHmmss(Date date){
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHH整点");
		return format.format(date);
	}
}
